package com.nextgenapp.fbgraph.model.person
{
	[Bindable]
	/**
	 * the person object representing a facebook object of type "user".
	 * 
	 * <code>
	   {
		   "id": "1234567890",
		   "name": "Sol Wu",
		   "first_name": "Sol",
		   "last_name": "Wu",
		   "link": "http://www.facebook.com/profile.php?id=1234567890",
		   "gender": "male",
		   "locale": "en_US",
		   "updated_time": "2009-07-22T04:18:21+0000",
		
		   "type": "user"
		}
	 *
	 * </code>
	 *  
	 * @author sol wu
	 */
	public class Person
	{
		public var id:String = null;
		public var name:String = null;
		public var first_name:String = null;
		public var last_name:String = null;
		public var link:String = null;
		public var gender:String = null;
		public var locale:String = null;
		public var updated_time:String = null;
		
		public function Person(obj:Object=null)
		{
			if (obj) {
				if (obj.id) { this.id = obj.id; }
				if (obj.name) { this.name = obj.name; }
				if (obj.first_name) { this.first_name = obj.first_name; }
				if (obj.last_name) { this.last_name = obj.last_name; }
				if (obj.link) { this.link = obj.link; }
				if (obj.gender) { this.gender = obj.gender; }
				if (obj.locale) { this.locale = obj.locale; }
				if (obj.updated_time) { this.updated_time = obj.updated_time; }				
			}
		}

	}
}